import request from '@/utils/request'

export async function setScore(answerid, data) {
  return request({
    url: '/answerSheet/answerid/' + answerid + '/score',
    method: 'post',
    data: data,
  })
}

export async function getPaperQuestionDataAndV(paperId, id) {
  return request({
    url: '/answerSheet/paper/' + paperId + '/answerSheet/' + id,
    method: 'get',
  })
}

export async function commit(id, data) {
  return request({
    url: '/answerSheet/' + id + '/commit',
    method: 'post',
    data,
  })
}

export function answerSheetByPaper(paperId) {
  return request({
    url: '/answerSheet/ByPaper/' + paperId,
    method: 'get',
  })
}

export function answerSheetById(id) {
  return request({
    url: '/answerSheet/' + id,
    method: 'get',
  })
}
export function all() {
  return request({
    url: '/answerSheet/all',
    method: 'get',
  })
}
